
<!-- AMIs partial -->
<script id="services.ec2.regions.id.images.partial" type="text/x-handlebars-template">
    <div class="list-group-item active">
        <h4 class="list-group-item-heading">{{name}}</h4>
    </div>
    <div class="list-group-item">
        <h4 class="list-group-item-heading">Information</h4>
        <ul>
            <li class="list-group-item-text">ARN: <samp>{{arn}}</samp></li>
            <li class="list-group-item-text">ID: <samp>{{id}}</samp></li>
            <li class="list-group-item-text">Architecture: {{getValueAt 'services.ec2.regions' region 'images' id 'Architecture'}}</li>
            <li class="list-group-item-text">Public: <span id="ec2.regions.{{region}}.images.{{id}}.image_is_public">{{getValueAt 'services.ec2.regions' region 'images' id 'Public'}}</span></li>
        </ul>
    </div>
</script>

<script>
    Handlebars.registerPartial("services.ec2.regions.id.images", $("#services\\.ec2\\.regions\\.id\\.images\\.partial").html());
</script>

<!-- Single AMI template -->
<script id="single_ec2_image-template" type="text/x-handlebars-template">
    {{> modal-template template='services.ec2.regions.id.images' }}
</script>
<script>
    var single_ec2__template = Handlebars.compile($("#single_ec2_image-template").html());
</script>
